extends Camera2D

@export var player : CharacterBody2D
@export var pos_offset : Vector2

func _ready() -> void:
	var self_pos = global_position
	pos_offset = self_pos - player.global_position

func _process(delta: float) -> void:
	var player_pos = player.global_position
	global_position = player_pos + pos_offset
